public class Room {
    private String id;//房间编号
    private double area;//面积
    private String type;//户型
    private double price;//单价
    private boolean state;//销售状态

    public Room() {
    }

    public Room(String id, double area, double price) {
        this.id = id;
        this.area = area;
        this.price = price;
    }

    public Room(String id, double area, String type, double price, boolean state) {
        this.id = id;
        this.area = area;
        this.type = type;
        this.price = price;
        this.state = state;
    }

    public void setState(boolean state) {
        this.state = state;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public double getArea() {
        return area;
    }

    public boolean getState() {
        return state;
    }

    public double getMoney() {
        return area * price;
    }

    public void showRoom() {
        System.out.println("房间编号：" + id);
        System.out.println("房间面积：" + area);
        System.out.println("房间户型：" + type);
        System.out.println("房间单价：" + price);
        System.out.println("销售状态：" + state);
    }
}